<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use App\Model\AdminLogsModel;
use App\Model\AdminRolesModel;
use App\Model\AdminRoleUserModel;

//实名认证审核表
class SearchModel extends Model
{
	//定义一个表名
	protected $table = 'search';
	//定义主键
	protected $primaryKey = 'id';
	protected $guarded = [];

	static function do_add($uid='',$name){
		$list = SearchModel::where('uid',$uid)->where('name',$name)->first();
		if($uid){
			if(!$list){
				SearchModel::create([
					'uid' => $uid,
					'name' => $name,
				]);
			}
		}



	}

}